import request from '@/utils/request'

// 后退按钮
export function back(data) {
  return request({
    url: `/system_setting/pressManualControl/back`,
    method: 'post',
    data
  })
}

// 回原点按钮
export function backHomeLocation(data) {
  return request({
    url: '/system_setting/pressManualControl/backHomeLocation',
    method: 'post',
    data
  })
}

// 心跳接口，每隔100ms请求一次，tag:只有在手动控制按下的时候调用
export function beat(data) {
  return request({
    url: '/system_setting/pressManualControl/beat',
    method: 'post',
    data
  })
}

// 前进按钮
export function forward(data) {
  return request({
    url: '/system_setting/pressManualControl/forward',
    method: 'post',
    data
  })
}

// 单步控制前进
export function stepMoveForward(data) {
  return request({
    url: '/system_setting/pressManualControl/stepMoveForward',
    method: 'post',
    data
  })
}

// 停止按钮
export function stop(data) {
  return request({
    url: '/system_setting/pressManualControl/stop',
    method: 'post',
    data
  })
}

// 查询传感器标定值
export function getSensorSet(data) {
  return request({
    url: '/system_setting/pressManualControl/getSensorSet',
    method: 'post',
    data
  })
}

// 传感器标定
export function resetSensor(data) {
  return request({
    url: '/system_setting/pressManualControl/resetSensor',
    method: 'post',
    data
  })
}

// 上线不合格复位
export function resetOnlineAlarm(data) {
  return request({
    url: '/system_setting/pressManualControl/resetOnlineAlarm',
    method: 'post',
    data
  })
}

// 支撑气缸伸出
export function cylinderOut(data) {
  return request({
    url: 'system_setting/pressManualControl/cylinderOut',
    method: 'post',
    data
  })
}

// 支撑气缸回
export function cylinderBack(data) {
  return request({
    url: 'system_setting/pressManualControl/cylinderBack',
    method: 'post',
    data
  })
}

// 强制上线
export function makeOnline(data) {
  return request({
    url: 'system_setting/pressManualControl/makeOnline',
    method: 'post',
    data
  })
}
